$(document).ready(function() {

	// Add autocomplete to role filter
	$('#filter-role').autocomplete(roles, {
		formatItem: function(row, pos, total, q) {
			return row[0].replace(/\|.+$/, '');
		},
		formatResult: function(row, pos, total) {
			return row[0].replace(/\|.+$/, '');
		}
	});
});